import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { MarshalException } from "../../Engine/RMI/MarshalException";
type int = number;
//class ELottertType
    
    export  class ELottertType
    {
        constructor(arg1: int)
        {
            
            this.__value = arg1;
            return;
        }

        public value(): int
        {
            return this.__value;
        }

        public __write(arg1: SerializeStream): void
        {
            arg1.writeShort(this.__value);
            return;
        }

        public static convert(arg1: int): ELottertType
        {
            return new ELottertType(arg1);
        }

        public static __read(arg1: SerializeStream): ELottertType
        {
            var loc1=arg1.readShort();
            if (loc1 < 0 || loc1 >= 1006) 
            {
                throw new MarshalException();
            }
            return ELottertType.convert(loc1);
        }

        public static /* const */_ELotterySeabed: int=123;

        public static /* const */_ELotteryHeaven: int=135;

        public static /* const */_ElotterySeabedShop: int=160;

        public static /* const */_ELotteryHeavenSHop: int=161;

        public static /* const */_ELotteryChristmas: int=1000;

        public static /* const */_ELotterySpringFestival: int=1001;

        public static /* const */_ELotteryWorshipShengtian: int=1002;

        public static /* const */_ELotteryHitEgg: int=1003;

        public static /* const */_ELotteryHitEggHigh: int=1004;

        public static /* const */_ELotteryKunlun: int=1005;

        public /* var */__value: int;
    }
